package org.ucas.faker.web.utils.fishbone;

import java.util.ArrayList;
import java.util.List;

public class Polygon {

    private List<double[]> pointList = new ArrayList<double[]>();

    public Polygon setPointList(List<double[]> pointList) {
        this.pointList = pointList;
        return this;
    }

    public List<double[]> getPointList() {
        return pointList;
    }

    public Polygon addPoint(double x, double y){
        this.pointList.add(new double[]{x, y});
        return this;
    }

    public Polygon addPoint(double[] p){
        this.pointList.add(p);
        return this;
    }
}
